package org.jeecg.modules.courseplanatom.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.modules.courseplanatom.entity.CouCoursePlanAtom;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description: cou_course_plan_atom
 * @author: baochangrong
 * @Date:   2022-02-17
 * @Version: V1.0
 */
public interface ICouCoursePlanAtomService extends IService<CouCoursePlanAtom> {
    IPage<CouCoursePlanAtom> queryAllPage(Page<CouCoursePlanAtom> page,CouCoursePlanAtom couCoursePlanAtom);
    List<CouCoursePlanAtom> coursePlanByCoursePlanId(String coursePlanId);
    /** 计划元素详情编辑 */
    boolean planAtomEdit(CouCoursePlanAtom couCoursePlanAtom);

    /** 计划元素详情新增 */
    boolean planAtomAdd(CouCoursePlanAtom couCoursePlanAtom);

    public int insertUpgradeCouCoursePlanAtom(CouCoursePlanAtom couCoursePlanAtom);
}
